export const getApi = async(data) => {
    let param = {
        DataCount: 0,
        PageCount: 0,
        PageIndex: 1,
        PageSize: 9999,
    };
    let res = null;
    debugger
    console.log(data)
    res = await data.$http.POST(`api/System/GetCustomSettings`, param);
    let api = {
        api: '',
    };
    console.log(res)
    if (res.Code == 200) {
        res.Result.Datas.forEach(item => {
            if (item.SettingName == 'ApiUrl') { //配置中心的配置项名称
                api.api = item.SettingValue;
            }
        });
    }
    return api;
};